package com.woniuxy.service;

import com.woniuxy.entity.PaperItem;
import com.woniuxy.entity.ResponseEntity;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: Online-education-examination-platform-back
 * @BelongsPackage: com.woniuxy.service
 * @Author: Banol Zi
 * @CreateTime: 2022-06-08  11:14
 * @Description: TODO
 * @Version: 1.0
 */
public interface PaperItemService {

//    得到试卷信息
    Integer getPostData(Map<String,Object> postMap);

//    保存试卷json
    Integer savePaperDetail();

    Integer saveResultPaper(Map<String,Object> postMap);

//      通过paperid得到试卷
    PaperItem getPaperById(Integer id);

    List<PaperItem> findPaperItemByCategoryId(int id);

    //查询试卷列表，模糊查询
    List<PaperItem> findAllP(Map map);

    Integer savePaperToRedis(Integer id);

    String getRedisExam(Map<String,Object> postMap);

    //删除试卷
    ResponseEntity deletePbyId(Integer id);
    //添加试卷
    Boolean addPaper(PaperItem paperItem);

    //改变试卷状态
    Boolean changePstatus(PaperItem paperItem);
}
